<?php
ini_set('display_errors',1);
set_time_limit(0); 
include_once dirname(dirname(dirname(__FILE__))).'/mgtv_init.php';
include_once dirname(dirname(__FILE__)).'/init.php';

$list = file('log.txt');
$db = nl_get_db(NL_DB_READ);
$db->open();
foreach($list as $val){
	//echo $val;	
	$sql = "select nns_id,nns_all_index,nns_name from nns_vod where nns_name='".trim($val)."'";	
	$info = nl_db_get_one($sql, $db);
	if(empty($info)){
		continue;
	}
	$id = $info['nns_id'];
	unset($val);
	
	
	
	category_content_model::sync_all($id);
	clip_task_model::add_task_by_new_media($id);
	
}
?>